#define _CRT_SECURE_NO_WARNINGS 1


class A
{
public:
    A()
    {
        sum = sum + i;
        i++;
    }
    A(A& a)
    {
        sum = sum + i;
        i++;
    }

    static int func()
    {
        return sum;
    }

private:
    static int i;
    static int sum;
};

int A::i = 1;
int A::sum = 0;


class Solution {
public:
    int Sum_Solution(int n) {
        A a[n];
        return A::func();
    }
};